#!/bin/bash

fileTypeOption=
targetURL=

if [ $# -ge 2 ]
then
	targetURL=$1
	shift
else
	exit -1
fi

fileTypeOption="-name $1"
shift

while [ $# -gt 0 ]
do
	fileTypeOption="$fileTypeOption -o -name $1"
	shift 
done

find $targetURL \( $fileTypeOption \) -print0 | xargs -0 wc
